﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DailyDiet.Models.VO
{
    public class RecDietViewObject {
        public string MealTimes { set; get; }
        public List<List<Diet>> DietLists { get; set; }
        public string Describe { 
            get {
                if (DietLists == null || DietLists.Count == 0) {
                    return "未生成推荐";
                }
                string describe = "";
                foreach (var diet in DietLists[0]) {
                    describe += diet.Name + " ";
                }

                return describe;
            }
        }
    }
}
